package com.yuan.springcloud.common.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 参数校验异常
 * @author YouYuan
 * @date 2020/8/18 22:01
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ParamValidException extends ServiceException {

    public ParamValidException(String message) {
        super(message);
    }

    public ParamValidException(String message, String code) {
        super(message, code);
    }

    public ParamValidException(String message, String code, Object data) {
        super(message, code, data);
    }

    public ParamValidException(ErrorEnum errorEnum) {
        super(errorEnum);
    }

    public ParamValidException() {
        super();
    }

    public ParamValidException(ErrorEnum errorEnum, Object data) {
        super(errorEnum, data);
    }

}
